import request  from '@/utils/request'

/**
 * @desc  审批流程
 */
export const addWork = data =>{
  return request({
    url:'/oa/work/addWork',
    method: 'post',
    data
  })
}

//流程表
export const workList = query =>{
  return request({
    url: '/oa/work/list',
    method: 'get',
    params: query,
  })
}

//流程详情
export const workDetail = query =>{
  return request({
    url:'/oa/work/work_detail',
    method:'get',
    params:query
  })
}

//编辑流程
export const editWork = data => {
  return request({
    url:'/oa/work/editWork',
    method:'post',
    data
  })
}

//删除流程
export const delWork = query =>{
  return request({
    url:'/oa/work/delWork',
    method:'get',
    params:query
  })
}
